package com.ml.mall.mapper.company;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ml.mall.entity.company.SysCompanyAddr;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysCompanyAddrMapper extends BaseMapper<SysCompanyAddr> {
    /**
     * @description    :通过公司自定义id查询地址
     * @author         :zxm
     * @date           :2021/5/14
    **/
    List<SysCompanyAddr> selectByCompanyId(@Param("companyId") Long companyId);

    /**
     * @description    :通过公司自定义id查询shop地址
     * @author         :zxm
     * @date           :2021/5/24
    **/
    SysCompanyAddr selectShopAddrByCompanyId(@Param("companyId")Long purchaseId);

    /**
     * @description    :通过公司自定义id查询bill地址
     * @author         :yx
     * @date           :2021/09/10
     **/
    SysCompanyAddr selectBillAddrByCompanyId(@Param("companyId")Long purchaseId);
}